﻿using System.Collections.Generic;
using NuGet.Server.DataServices;

namespace MayhemServer.Models {
    public class PageSet<T> {
        public PageSet(IEnumerable<T> items, int pageIndex, int pageSize, int totalItemCount) {
            Items = items;
            PageIndex = pageIndex;
            PageSize = pageSize;
            TotalItemCount = totalItemCount;
        }

        public IEnumerable<T> Items { get; private set; }
        public int PageIndex { get; private set; }
        public int PageSize { get; private set; }
        public int TotalItemCount { get; private set; }
    }
}